<?php
require 'models/CarModel.php';

class CarModelController extends BaseController {

    public function index() {
        $models = CarModel::orm()->find_many();

        $results = array();

        foreach ($models as $model) {
            $results[] = $model->as_array();
        }

        return $results;
    }

}
